const CopyPlugin = require('copy-webpack-plugin')
const webpack = require('webpack')
const common = require('./webpack.common')
const { merge } = require('webpack-merge')
module.exports = merge(common, {
    mode: 'development',
    devtool: 'cheap-module-eval-source-map',
    devServer: {
        hot: true,
        contentBase: 'public'
    },
    plugins: [
        // 热更新
        new webpack.HotModuleReplacementPlugin()
    ]
})